<?php
  
  function organisation_details_validation($form) { 
  	//print "<pre>";print_r($form); print "</pre>"; 
    $stat = new set_static_variable(); 
	
	//Concerned Dept Validation
    //chk_concerned_dept($form['field_orgn_depart']);
    //Duplicate Title
	//check_title_duplication($form['title'], $form['type']['#value'], $form['field_orgn_depart'], 'field_orgn_depart', $stat->get_nid());
    $stat->set_nid(0);
		
    // Check bad character validation
    chkbadchar($form['title']['#value'], $form['title']['#title'], 'title'); 
	
	// check char
	//check_char($form['title']['#value'], $form['title']['#title']);
	
									
	// maximum length validation for Title and Description Field
    maxlength_validation($form['title']['#value'], 255, $form['title']['#title'], 'title');
	
	// minimum length charcter  
    minilength_validation($form['title']['#value'], 5, $form['title']['#title'], 'title');
		   
}
 
?>